import request from '@/utils/request'
export function fatgetDepartments() {
  return request({
    url: '/company/department',
    method: 'GET'

  })
}

// 获取部门负责人列表
export function fatgetEmployee() {
  return request({
    url: '/sys/user/simple',
    method: 'GET'
  })
}

export function fataddDpart(data) {
  return request({
    url: '/company/department',
    method: 'POST',
    data
  })
}

// 删除
export function fatdelDpart(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'DELETE'
  })
}

// 获取详情
export function fatgetHuoqu(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'GET'
  })
}

// 编辑
export function fateditDpart(data) {
  return request({
    url: `/company/department/${data.id}`,
    method: 'PUT',
    data
  })
}

